package us.hootpic.server.model;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;
/**
 * 
 *       Key key = KeyFactory.createKey(Employee.class.getSimpleName(), "Alfred.Smith@example.com");
 *       Employee e = new Employee();
 *       e.setKey(key);
 *       pm.makePersistent(e);
 *
 */
@SuppressWarnings("unused")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Photo {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;	// photoUri
    @Persistent
	private String photoId;
    @Persistent
	private String title;
    public Key getKey() {
		return key;
	}
	public void setKey(Key key) {
		this.key = key;
	}
	public String getPhotoId() {
		return photoId;
	}
	public void setPhotoId(String photoId) {
		this.photoId = photoId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getPostDate() {
		return postDate;
	}
	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}
	public String getPhotoUrl() {
		return photoUrl;
	}
	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}
	public String getPhotoThumbnailUrl() {
		return photoThumbnailUrl;
	}
	public void setPhotoThumbnailUrl(String photoThumbnailUrl) {
		this.photoThumbnailUrl = photoThumbnailUrl;
	}
	public String getIsValid() {
		return isValid;
	}
	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}
	public String getImageType() {
		return imageType;
	}
	public void setImageType(String imageType) {
		this.imageType = imageType;
	}
	public Blob getImage() {
		return image;
	}
	public void setImage(Blob image) {
		this.image = image;
	}
	public Blob getThumbnailImage() {
		return thumbnailImage;
	}
	public void setThumbnailImage(Blob thumbnailImage) {
		this.thumbnailImage = thumbnailImage;
	}
	public String getSizeType() {
		return sizeType;
	}
	public void setSizeType(String sizeType) {
		this.sizeType = sizeType;
	}
	public String getDelyn() {
		return delyn;
	}
	public void setDelyn(String delyn) {
		this.delyn = delyn;
	}
	public String getOwnerid() {
		return ownerid;
	}
	public void setOwnerid(String ownerid) {
		this.ownerid = ownerid;
	}
	public String getOwnername() {
		return ownername;
	}
	public void setOwnername(String ownername) {
		this.ownername = ownername;
	}
	public String getOwneremail() {
		return owneremail;
	}
	public void setOwneremail(String owneremail) {
		this.owneremail = owneremail;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getComefrom() {
		return comefrom;
	}
	public void setComefrom(String comefrom) {
		this.comefrom = comefrom;
	}
	public int getLikes() {
		return likes;
	}
	public void setLikes(int likes) {
		this.likes = likes;
	}
	public String getUploader() {
		return uploader;
	}
	public void setUploader(String uploader) {
		this.uploader = uploader;
	}
	@Persistent
	private String postDate;
    @Persistent
	private String photoUrl;
    @Persistent
	private String photoThumbnailUrl;
    @Persistent
	private String isValid;
    @Persistent
	private String imageType;
    @Persistent
	private Blob image;
    @Persistent
	private Blob thumbnailImage;
    @Persistent
	private String sizeType;
    @Persistent
	private String delyn;
    @Persistent
	private String ownerid;
    @Persistent
	private String ownername;
    @Persistent
	private String owneremail;
    @Persistent
	private String tag;
    @Persistent
	private String comefrom;
    @Persistent
	private int likes;
    @Persistent
	private String uploader;

}
